package com.test.controller;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/4/25.
 */
public class DataUtils {

    public static List<Object[]> getCurrentData(){
        List<Object[]> current = new ArrayList<Object[]>();
        Object[] current1 = {1, 15};
        Object[] current2 = {3, 70};
        Object[] current3 = {5, 20};
        Object[] current4 = {2, 90};
        Object[] current5 = {9, 19};
        Object[] current6 = {4, 40};
        Object[] current7 = {20, 90};
        Object[] current8 = {18, 70};
        Object[] current9 = {15, 80};
        current.add(current1);
        current.add(current2);
        current.add(current3);
        current.add(current4);
        current.add(current5);
        current.add(current6);
        current.add(current7);
        current.add(current8);
        current.add(current9);
        return current;
    }

    public static List<Object[]> getLastData(){
        List<Object[]> current = new ArrayList<Object[]>();
        Object[] current1 = {1, 10};
        Object[] current2 = {2, 60};
        Object[] current3 = {3, 20};
        Object[] current4 = {4, 60};
        Object[] current5 = {5, 50};
        Object[] current6 = {6, 30};
        Object[] current7 = {7, 90};
        Object[] current8 = {9, 10};
        Object[] current9 = {8, 50};
        Object[] current10 = {10, 40};
        Object[] current11 = {11, 50};
        Object[] current12 = {12, 20};
        Object[] current13 = {13, 50};
        Object[] current14 = {14, 50};
        Object[] current15 = {15, 70};
        Object[] current16 = {16, 50};
        Object[] current17 = {17, 50};
        Object[] current18 = {18, 50};
        Object[] current19 = {19, 90};
        Object[] current20 = {20, 50};
        Object[] current21 = {21, 50};
        current.add(current1);
        current.add(current2);
        current.add(current3);
        current.add(current4);
        current.add(current5);
        current.add(current6);
        current.add(current7);
        current.add(current8);
        current.add(current9);
        current.add(current10);
        current.add(current11);
        current.add(current12);
        current.add(current13);
        current.add(current14);
        current.add(current15);
        current.add(current16);
        current.add(current17);
        current.add(current18);
        current.add(current19);
        current.add(current20);
        current.add(current21);
        return current;
    }

    public static List<String> cityNames(){
        List<String> cityName = new ArrayList<String>();
        cityName.add("巴中");
        cityName.add("阿坝");
        cityName.add("雅安");
        cityName.add("乐山");
        cityName.add("宜宾");
        cityName.add("甘孜");
        cityName.add("广元");
        cityName.add("凉山");
        cityName.add("德阳");
        cityName.add("绵阳");
        cityName.add("眉山");
        cityName.add("攀枝花");
        cityName.add("内江");
        cityName.add("南充");
        cityName.add("遂宁");
        cityName.add("自贡");
        cityName.add("广安");
        cityName.add("泸州");
        cityName.add("成都");
        cityName.add("达州");
        cityName.add("资阳");
        return cityName;
    }

    public static List<String> cityNames2(){
        List<String> cityName = new ArrayList<String>();
        cityName.add("巴中市");
        cityName.add("阿坝藏族羌族自治州");
        cityName.add("雅安市");
        cityName.add("乐山市");
        cityName.add("宜宾市");
        cityName.add("甘孜藏族自治州");
        cityName.add("广元市");
        cityName.add("凉山彝族自治州");
        cityName.add("德阳市");
        cityName.add("绵阳市");
        cityName.add("眉山市");
        cityName.add("攀枝花市");
        cityName.add("内江市");
        cityName.add("南充市");
        cityName.add("遂宁市");
        cityName.add("自贡");
        cityName.add("广安市");
        cityName.add("泸州市");
        cityName.add("成都");
        cityName.add("达州市");
        cityName.add("资阳市");
        return cityName;
    }

    public static List<Integer> cityIds(){
        List<Integer> cityId = new ArrayList<Integer>();
        cityId.add(1);
        cityId.add(2);
        cityId.add(3);
        cityId.add(4);
        cityId.add(5);
        cityId.add(6);
        cityId.add(7);
        cityId.add(8);
        cityId.add(9);
        cityId.add(10);
        cityId.add(11);
        cityId.add(12);
        cityId.add(13);
        cityId.add(14);
        cityId.add(15);
        cityId.add(16);
        cityId.add(17);
        cityId.add(18);
        cityId.add(19);
        cityId.add(20);
        cityId.add(21);
        return cityId;
    }
}
